<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/css.css" />
	<script src="js/jquery-1.10.1.min.js"></script>
	<script src="js/side.js" type="text/javascript"></script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">公共管理</a>&nbsp;-</span>&nbsp;意见管理
			</div>
		</div>
		<div class="page ">
			<!-- 会员注册页面样式 -->
			
			<div class="banneradd bor">
				<div class="baTopNo">
					<span>教师添加</span>
				</div>
				<form action="teacher/addOrupdate" method="post">
				<div class="baBody">
					<div class="bbD">
						教师姓名<input name="tname" type="text" class="input3" value="${t.tname }">
					</div>
					<div class="bbD">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;性别<select class="input3" name="tsex">
	<option value="男" ${"男" eq t.tsex ? 'selected="selected"':''}>男</option>
	<option value="女" ${"女" eq t.tsex ? 'selected="selected"':''}>女</option>
</select>
					</div>
					<div class="bbD">
						联系方式<input name="tphone" type="text" class="input3" value="${t.tphone }">
					</div>
					<div class="bbD">
						教师职称<select class="input3" name="title">
		<option value="教授" ${"教授" eq t.title ? 'selected="selected"':''}>教授</option>
		<option value="副教授" ${"副教授" eq t.title ? 'selected="selected"':''}>副教授</option>
		<option value="高级教师" ${"高级教师" eq t.title ? 'selected="selected"':''}>高级教师</option>
		<option value="中级教师" ${"中级教师" eq t.title ? 'selected="selected"':''}>中级教师</option>
		<option value="特级教师" ${"特级教师" eq t.title ? 'selected="selected"':''}>特级教师</option>
</select>
					</div>
					<div class="bbD">
						所属院系<select class="input3" name="mid">
	<c:forEach items="${list }" var="m">
		<option value="${m.mid }" ${m.mid eq t.mid ? 'selected="selected"':''}>${m.mname }</option>
	</c:forEach>
</select>
						</div>
						<input type="hidden" name="tid" value="${t.tid }"/>
					<div class="bbD">
						<p class="bbDP">
							<button class="btn_ok btn_yes" type="submit">提交</button>
							<button type="button" class="btn_ok btn_no" id="backid">取消</button>
						</p>
					</div>
				</div>
					</form>
				</div>
			</div>

			<!-- 会员注册页面样式end -->
		</div>
</body>
  
</html>
<script>
	 $(function () {       
		$('#backid').click(function(){
				window.location.href="teacher/query";
		 });

    });
</script>
